package com.eco.fanliapp.dao;

import com.alibaba.fastjson.JSONObject;
import com.eco.fanliapp.entity.SyUserCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-08-21
 */
public interface SyUserCollectionMapper extends BaseMapper<SyUserCollection> {
    List<JSONObject> selectCollectionList(@Param("userId") Long userId, @Param("start") Integer pageNum, @Param("end") Integer pageSize);
    List<SyUserCollection> selectCollectionAll();
    SyUserCollection selectCollection(@Param("userId") String userId, @Param("itemId") String itemId);

}
